package com.c39.otc.open.launcher;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;

import java.time.Instant;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.TextStyle;
import java.util.Locale;

/**
 * @author JiaLing.FanX
 * @version 1.0
 * @description: TODO
 * @date 2025/10/30 17:22
 */
public class Temp {

    public static void main(String[] args) {

        long timestamp = 1761815866L;
        Instant instant = Instant.ofEpochSecond(timestamp);
        ZonedDateTime beijingTime = instant.atZone(ZoneId.of("Asia/Shanghai"));

        System.out.println("时间戳: " + timestamp);
        System.out.println("北京时间: " + beijingTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
        System.out.println("星期: " + beijingTime.getDayOfWeek().getDisplayName(TextStyle.FULL, Locale.CHINA));
    }
}
